package com.gsx.entity;

import java.util.List;

public class Type {
    private Long type_id;
    private String type_name;/*分类的名字*/
    private List<Blog> blogs;

    public Type() {
    }

    public Type(long l, String name) {
        this.type_id=l;
        this.type_name=name;
    }

    @Override
    public String toString() {
        return "Type{" +
                "type_id=" + type_id +
                ", type_name='" + type_name + '\'' +
                ", blogs=" + blogs +
                '}';
    }

    public Long getType_id() {
        return type_id;
    }

    public void setType_id(Long type_id) {
        this.type_id = type_id;
    }

    public String getType_name() {
        return type_name;
    }

    public void setType_name(String type_name) {
        this.type_name = type_name;
    }

    public List<Blog> getBlogs() {
        return blogs;
    }

    public void setBlogs(List<Blog> blogs) {
        this.blogs = blogs;
    }
}
